// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
//   transpileDependencies: true
// })

// 引入path内置模块
const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}
// 修改配置文件一定要重启
module.exports = {
  lintOnSave: false,
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set('@c', resolve('src/components'))
      .set('@a', resolve('src/api'))
      .set('@s', resolve('src/assets'))
      .set('@t', resolve('src/utils'))
  }
}
